package com.hundsun.yr.universal.p2p.bean;

import java.io.Serializable;

import com.hundsun.yr.universal.library.data.HSSharedPreferences;
import com.hundsun.yr.universal.library.utils.HsNumberUtils;


/**
 * @Title: AccountInfoBean.java 
 * @Description: 会员托管账户信息
 
 */
public class AccountInfoBean implements Serializable{

	
	private static final long serialVersionUID = 1L;
	/**
	 * 用户名
	 */
	private String account;
	/**
	 * 账户余额
	 */
	private double accountBalance;
	/**
	 * 开户时间
	 */
	private String accountTime;
	/**
	 * 绑定银行
	 */
	private String bankName;
	/**
	 * 绑定卡号
	 */
	private String cardNo;
	/**
	 * 最大可提现金额
	 */
	private double maxWithdraw;
	/**
	 * 状态
	 */
	private String status;
	/**
	 * 总负债
	 */
	private double totalDept;
	/**
	 * 托管账号
	 */
	private String tsAccountNo;
	/**
	 * 托管冻结金额
	 */
	private double tsFrozenAmt;
	/**
	 * 托管可用金额
	 */
	private double tsUseableAmt;
	/**
	 * 托管可提现金额
	 */
	private double tsWithdrawAbleAmt;
	/**
	 * 姓名
	 */
	private String userName;
	/**
	 * 用户编号
	 */
	private String userNo;
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public double getAccountBalance() {
		return accountBalance;
	}
	public void setAccountBalance(double accountBalance) {
		this.accountBalance = accountBalance;
	}
	public String getAccountTime() {
		return accountTime;
	}
	public void setAccountTime(String accountTime) {
		this.accountTime = accountTime;
	}
	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	public String getCardNo() {
		return cardNo;
	}
	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}
	public double getMaxWithdraw() {
		return maxWithdraw;
	}
	public void setMaxWithdraw(double maxWithdraw) {
		this.maxWithdraw = maxWithdraw;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public double getTotalDept() {
		return totalDept;
	}
	public void setTotalDept(double totalDept) {
		this.totalDept = totalDept;
	}
	public String getTsAccountNo() {
		return tsAccountNo;
	}
	public void setTsAccountNo(String tsAccountNo) {
		this.tsAccountNo = tsAccountNo;
	}
	public double getTsFrozenAmt() {
		return tsFrozenAmt;
	}
	public void setTsFrozenAmt(double tsFrozenAmt) {
		this.tsFrozenAmt = tsFrozenAmt;
	}
	public double getTsUseableAmt() {
		return tsUseableAmt;
	}
	public void setTsUseableAmt(double tsUseableAmt) {
		this.tsUseableAmt = tsUseableAmt;
	}
	public double getTsWithdrawAbleAmt() {
		return tsWithdrawAbleAmt;
	}
	public void setTsWithdrawAbleAmt(double tsWithdrawAbleAmt) {
		this.tsWithdrawAbleAmt = tsWithdrawAbleAmt;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserNo() {
		return userNo;
	}
	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}
	
	/**
	 * 存储本地信息
	 * @param sharedPreferences
	 */
	public void saveAccountInfo(HSSharedPreferences sharedPreferences){
		
		sharedPreferences.putShareProf(AccountInfoBean.TSFROZENAMT, HsNumberUtils.moneyFormat((double)tsFrozenAmt));
		sharedPreferences.putShareProf(AccountInfoBean.TSWITHDRAWABLEAMT, HsNumberUtils.moneyFormat((double)tsWithdrawAbleAmt));
		
	}
	
	
	/**
	 * 托管冻结金额
	 */
	public static String TSFROZENAMT="tsFrozenAmt";
	/**
	 * 托管可提现金额
	 */
	public static String TSWITHDRAWABLEAMT="tsWithdrawAbleAmt";
}
